﻿#ifndef POINT_H
#define POINT_H

#include <QDebug>
#define M_PI_3 1.0471975333333333
#define M_PI_6 0.5235
#define M_PI_12 0.2617
#define M_PI_36 0.085
class Point {
public:
    Point();
    Point( double x, double y );
    Point( double x, double y, double radian );

    double x() const;
    void setX( double x );

    double y() const;
    void setY( double y );

    double radian() const;
    void setRadian( double radian );

    void addX( double x );
    void addY( double y );

    void reset();

private:
    double x_;       // X轴坐标
    double y_;       // Y轴坐标
    double radian_;  //弧度
};
QDebug operator<<( QDebug debug, const Point& p );

#endif  // POINT_H
